package com.sz.web.account.entity;

import com.sz.web.common.entity.BaseEntity;

import javax.persistence.Table;

@Table(name = "account_role")
public class AccountRole extends BaseEntity {

    private static final long serialVersionUID = -4273933632947298759L;

    /**
     * 角色名称
     */
    private String roleName = "";

    /**
     * 状态
     */
    private Integer status = 0;
    /**
     * 父角色id
     */
    private Integer parentId = 0;

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "AccountRole{" +
                "roleName='" + roleName + '\'' +
                ", status=" + status +
                ", parentId=" + parentId +
                '}';
    }
}
